package com.fannm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fannm.dao.EmpDao;
import com.fannm.model.Emp;
import com.fannm.service.EmpService;

@Service
public class EmpServiceImpl implements EmpService {

	@Autowired
	private EmpDao empDao;

	@Override
	public List<Emp> queryEmpAll() {
		return empDao.findAll();
	}
	@Override
	public Emp save(Emp emp) {
		return empDao.save(emp);
	}
	@Override
	public Emp select(Emp emp) {
		return empDao.save(emp);
	}
	
}
